package cn.blog.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MatchExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MatchExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMatchidIsNull() {
            addCriterion("matchId is null");
            return (Criteria) this;
        }

        public Criteria andMatchidIsNotNull() {
            addCriterion("matchId is not null");
            return (Criteria) this;
        }

        public Criteria andMatchidEqualTo(String value) {
            addCriterion("matchId =", value, "matchid");
            return (Criteria) this;
        }

        public Criteria andMatchidNotEqualTo(String value) {
            addCriterion("matchId <>", value, "matchid");
            return (Criteria) this;
        }

        public Criteria andMatchidGreaterThan(String value) {
            addCriterion("matchId >", value, "matchid");
            return (Criteria) this;
        }

        public Criteria andMatchidGreaterThanOrEqualTo(String value) {
            addCriterion("matchId >=", value, "matchid");
            return (Criteria) this;
        }

        public Criteria andMatchidLessThan(String value) {
            addCriterion("matchId <", value, "matchid");
            return (Criteria) this;
        }

        public Criteria andMatchidLessThanOrEqualTo(String value) {
            addCriterion("matchId <=", value, "matchid");
            return (Criteria) this;
        }

        public Criteria andMatchidLike(String value) {
            addCriterion("matchId like", value, "matchid");
            return (Criteria) this;
        }

        public Criteria andMatchidNotLike(String value) {
            addCriterion("matchId not like", value, "matchid");
            return (Criteria) this;
        }

        public Criteria andMatchidIn(List<String> values) {
            addCriterion("matchId in", values, "matchid");
            return (Criteria) this;
        }

        public Criteria andMatchidNotIn(List<String> values) {
            addCriterion("matchId not in", values, "matchid");
            return (Criteria) this;
        }

        public Criteria andMatchidBetween(String value1, String value2) {
            addCriterion("matchId between", value1, value2, "matchid");
            return (Criteria) this;
        }

        public Criteria andMatchidNotBetween(String value1, String value2) {
            addCriterion("matchId not between", value1, value2, "matchid");
            return (Criteria) this;
        }

        public Criteria andMatchnameIsNull() {
            addCriterion("matchName is null");
            return (Criteria) this;
        }

        public Criteria andMatchnameIsNotNull() {
            addCriterion("matchName is not null");
            return (Criteria) this;
        }

        public Criteria andMatchnameEqualTo(String value) {
            addCriterion("matchName =", value, "matchname");
            return (Criteria) this;
        }

        public Criteria andMatchnameNotEqualTo(String value) {
            addCriterion("matchName <>", value, "matchname");
            return (Criteria) this;
        }

        public Criteria andMatchnameGreaterThan(String value) {
            addCriterion("matchName >", value, "matchname");
            return (Criteria) this;
        }

        public Criteria andMatchnameGreaterThanOrEqualTo(String value) {
            addCriterion("matchName >=", value, "matchname");
            return (Criteria) this;
        }

        public Criteria andMatchnameLessThan(String value) {
            addCriterion("matchName <", value, "matchname");
            return (Criteria) this;
        }

        public Criteria andMatchnameLessThanOrEqualTo(String value) {
            addCriterion("matchName <=", value, "matchname");
            return (Criteria) this;
        }

        public Criteria andMatchnameLike(String value) {
            addCriterion("matchName like", value, "matchname");
            return (Criteria) this;
        }

        public Criteria andMatchnameNotLike(String value) {
            addCriterion("matchName not like", value, "matchname");
            return (Criteria) this;
        }

        public Criteria andMatchnameIn(List<String> values) {
            addCriterion("matchName in", values, "matchname");
            return (Criteria) this;
        }

        public Criteria andMatchnameNotIn(List<String> values) {
            addCriterion("matchName not in", values, "matchname");
            return (Criteria) this;
        }

        public Criteria andMatchnameBetween(String value1, String value2) {
            addCriterion("matchName between", value1, value2, "matchname");
            return (Criteria) this;
        }

        public Criteria andMatchnameNotBetween(String value1, String value2) {
            addCriterion("matchName not between", value1, value2, "matchname");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressIsNull() {
            addCriterion("matchAddfress is null");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressIsNotNull() {
            addCriterion("matchAddfress is not null");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressEqualTo(String value) {
            addCriterion("matchAddfress =", value, "matchaddfress");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressNotEqualTo(String value) {
            addCriterion("matchAddfress <>", value, "matchaddfress");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressGreaterThan(String value) {
            addCriterion("matchAddfress >", value, "matchaddfress");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressGreaterThanOrEqualTo(String value) {
            addCriterion("matchAddfress >=", value, "matchaddfress");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressLessThan(String value) {
            addCriterion("matchAddfress <", value, "matchaddfress");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressLessThanOrEqualTo(String value) {
            addCriterion("matchAddfress <=", value, "matchaddfress");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressLike(String value) {
            addCriterion("matchAddfress like", value, "matchaddfress");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressNotLike(String value) {
            addCriterion("matchAddfress not like", value, "matchaddfress");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressIn(List<String> values) {
            addCriterion("matchAddfress in", values, "matchaddfress");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressNotIn(List<String> values) {
            addCriterion("matchAddfress not in", values, "matchaddfress");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressBetween(String value1, String value2) {
            addCriterion("matchAddfress between", value1, value2, "matchaddfress");
            return (Criteria) this;
        }

        public Criteria andMatchaddfressNotBetween(String value1, String value2) {
            addCriterion("matchAddfress not between", value1, value2, "matchaddfress");
            return (Criteria) this;
        }

        public Criteria andMatchdateIsNull() {
            addCriterion("matchDate is null");
            return (Criteria) this;
        }

        public Criteria andMatchdateIsNotNull() {
            addCriterion("matchDate is not null");
            return (Criteria) this;
        }

        public Criteria andMatchdateEqualTo(Date value) {
            addCriterion("matchDate =", value, "matchdate");
            return (Criteria) this;
        }

        public Criteria andMatchdateNotEqualTo(Date value) {
            addCriterion("matchDate <>", value, "matchdate");
            return (Criteria) this;
        }

        public Criteria andMatchdateGreaterThan(Date value) {
            addCriterion("matchDate >", value, "matchdate");
            return (Criteria) this;
        }

        public Criteria andMatchdateGreaterThanOrEqualTo(Date value) {
            addCriterion("matchDate >=", value, "matchdate");
            return (Criteria) this;
        }

        public Criteria andMatchdateLessThan(Date value) {
            addCriterion("matchDate <", value, "matchdate");
            return (Criteria) this;
        }

        public Criteria andMatchdateLessThanOrEqualTo(Date value) {
            addCriterion("matchDate <=", value, "matchdate");
            return (Criteria) this;
        }

        public Criteria andMatchdateIn(List<Date> values) {
            addCriterion("matchDate in", values, "matchdate");
            return (Criteria) this;
        }

        public Criteria andMatchdateNotIn(List<Date> values) {
            addCriterion("matchDate not in", values, "matchdate");
            return (Criteria) this;
        }

        public Criteria andMatchdateBetween(Date value1, Date value2) {
            addCriterion("matchDate between", value1, value2, "matchdate");
            return (Criteria) this;
        }

        public Criteria andMatchdateNotBetween(Date value1, Date value2) {
            addCriterion("matchDate not between", value1, value2, "matchdate");
            return (Criteria) this;
        }

        public Criteria andMatchdescIsNull() {
            addCriterion("matchDesc is null");
            return (Criteria) this;
        }

        public Criteria andMatchdescIsNotNull() {
            addCriterion("matchDesc is not null");
            return (Criteria) this;
        }

        public Criteria andMatchdescEqualTo(String value) {
            addCriterion("matchDesc =", value, "matchdesc");
            return (Criteria) this;
        }

        public Criteria andMatchdescNotEqualTo(String value) {
            addCriterion("matchDesc <>", value, "matchdesc");
            return (Criteria) this;
        }

        public Criteria andMatchdescGreaterThan(String value) {
            addCriterion("matchDesc >", value, "matchdesc");
            return (Criteria) this;
        }

        public Criteria andMatchdescGreaterThanOrEqualTo(String value) {
            addCriterion("matchDesc >=", value, "matchdesc");
            return (Criteria) this;
        }

        public Criteria andMatchdescLessThan(String value) {
            addCriterion("matchDesc <", value, "matchdesc");
            return (Criteria) this;
        }

        public Criteria andMatchdescLessThanOrEqualTo(String value) {
            addCriterion("matchDesc <=", value, "matchdesc");
            return (Criteria) this;
        }

        public Criteria andMatchdescLike(String value) {
            addCriterion("matchDesc like", value, "matchdesc");
            return (Criteria) this;
        }

        public Criteria andMatchdescNotLike(String value) {
            addCriterion("matchDesc not like", value, "matchdesc");
            return (Criteria) this;
        }

        public Criteria andMatchdescIn(List<String> values) {
            addCriterion("matchDesc in", values, "matchdesc");
            return (Criteria) this;
        }

        public Criteria andMatchdescNotIn(List<String> values) {
            addCriterion("matchDesc not in", values, "matchdesc");
            return (Criteria) this;
        }

        public Criteria andMatchdescBetween(String value1, String value2) {
            addCriterion("matchDesc between", value1, value2, "matchdesc");
            return (Criteria) this;
        }

        public Criteria andMatchdescNotBetween(String value1, String value2) {
            addCriterion("matchDesc not between", value1, value2, "matchdesc");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}